import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

// pages页面
import Index from '../pages/Index.vue'

// page下的分支路由
import indexPage from './pages'


export default new Router({
  routes: [
    { path: '/', redirect: '/index' },
    {
      path: '/index',
      name: 'Index',
      component: Index,
      children: indexPage
    }
  ]
})
